<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
	<head>
	    <link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
	    <title><s:text name="application.title"/></title>
	</head>
  
	<body>
		<div class="titleDiv"><s:text name="application.title"/></div>
		<h1>
      <s:text name="label.studentSubjects.listsubjects"/> <s:property value="student.nombre"/> ( <s:property value="student.dni"/> )
    </h1>
		<br/><br/>
			
		<table class="borderAll">
		    <tr>
		        <th><s:text name="header.subjectStudents.dni"/></th>
		        <th><s:text name="header.subjectStudents.name"/></th>
		        <th><s:text name="header.subjectStudents.number"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
	        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
	            <td class="nowrap"><s:property value="student.dni"/></td>
	            <td class="nowrap"><s:property value="student.nombre"/></td>
	            <td class="nowrap"><s:property value="student.telefono"/></td> 
	        </tr>
		</table>
		<br/><br/>
			
		<table class="borderAll">
		    <tr>
		        <th><s:text name="label.studentAllSubjectMarks.subject"/></th>
		        <th><s:text name="label.studentAllSubjectMarks.ID"/></th>
		        <th><s:text name="label.studentSubjectMarkingForm.concept"/></th>
				<th><s:text name="label.studentSubjectMarkingForm.mark"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
		    <s:iterator value="evaluationList" status="status">
		        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		            <td class="nowrap"><s:property value="subject.nombre"/></td>
		            <td class="nowrap"><s:property value="subject.codigo"/></td>
		            <td class="nowrap"><s:property value="concepto"/></td>  
		            <td class="nowrap"><s:property value="nota"/></td>          	
		        </tr>
		    </s:iterator>
		</table>
		<br/>
		<s:form action="subject!cancelSubjectListing" method="post">
			<s:submit 
				value="%{getText('label.subjectStudents.button')}" 
				align="center"
			/>
		</s:form>	
	</body>
</html>